package mk.jug.academy.testing.factory;

import java.util.UUID;

import mk.jug.academy.model.Course;
import mk.jug.academy.model.status.CourseStatus;


/**
 * Factory for creating instances for test purposes.
 * 
 * @author Ice.Penov
 */
public final class CourseTestFactory {
	
	/** No instantiation. Static usage only. */
	private CourseTestFactory() {;}
	
	/** Creates a random {@link Course} instance, for testing purposes */	
	public static Course createCourse() {
		Course course = new Course();
		course.setTitle("title" + UUID.randomUUID());
		course.setDescription("description" + UUID.randomUUID());
		course.setStatus(CourseStatus.HATCHING);
		return course;
	}
	
	/** Creates a random {@link Course} instance, for testing purposes */	
	public static Course createWithMissingTitle() {
		Course course = createCourse();
		course.setTitle(null);
		return course;
	}

}
